#include "my_audio_media_port.hpp"
#include "pjsip_manager.hpp"
#include "hilog/log.h"

void MyAudioMediaPort::onFrameRequested(MediaFrame &frame)
{
   frame.type = PJMEDIA_FRAME_TYPE_AUDIO;
}

void MyAudioMediaPort::onFrameReceived(MediaFrame &frame) 
{
    PJSUAManager::getInstace()->sendFlutterRecordBuffer(_invokeMethod, frame.buf);
}